<template>
  <div class="timehome">
    <div class="welcome-box">
      <div class="welc1" v-if="detele">
        <h3>Hi，你好!<img src="../assets/images/enjoy.png" alt="" /></h3>
        <p>
          心情&nbsp;&nbsp;&nbsp;创建于 <span> 2021.07.20</span
          ><button @click="tipdelete">..</button>
        </p>
        <div class="tip" v-if="tip">
          <button @click="mydelete">删除</button>
        </div>
      </div>
      <div class="welc2">
        <h3>Nice to meet you</h3>
        <p>感谢您下载使用《麻雀记》!</p>
        <p>
          麻雀记是一款专注个人记录的优秀App。麻雀记可以帮助
          你整理各种信息，包括便签、清单、图片、倒数日、纪念
          日、心情、地址、链接等。你可以使用看板、标签以及四象
          限等功能来帮助你更好地归纳整理。
        </p>
        <p>
          在新版本中，我们提供了Focus页面，把你置顶的笔记整合
          在一个页面中，结合番茄钟功能，提高你的专注力与效率。
          我们提供了数据块笔记，它主要是用来记录一些数字信...
        </p>
        <p>
          便签&nbsp;&nbsp;&nbsp;创建于 <span> 2021.07.20</span>
          <button @click="tipdelete2">..</button>
        </p>
        <div class="tip" v-if="tip">
          <button @click="mydelete2">删除</button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Linehome",
  data() {
    return {
      tip: false,
      detele: true,
      tip2: false,
      detele2: true
    };
  },
  methods: {
    tipdelete() {
      this.tip = true;
    },
    mydelete() {
      this.detele = false;
    },
    tipdelete2() {
      this.tip2 = true;
    },
    mydelete2() {
      this.detele2 = false;
    },
  },
};
</script>

<style lang="less" scoped>
.timehome {
  width: 100%;
  .welcome-box {
    width: 100%;
    padding: 10px 20px 20px;
    box-sizing: border-box;
    > div {
      font-size: 15px;
      color: #808080;
      margin-bottom: 30px;
      background-color: #fff;
      border-radius: 10px;
      padding: 5px 10px;
    }
    .welc1 {
      h3 {
        text-align: center;
        color: #000;
        margin: 10px 0 15px;
        position: relative;
        img {
          width: 30px;
          vertical-align: middle;
          margin-left: 20px;
        }
      }
      p {
        font-size: 12px;
        position: relative;
        button {
          font-size: 30px;
          background-color: transparent;
          position: absolute;
          right: 0;
          top: -25px;
          padding: 5px 5px;
        }
      }
      .tip {
        position: absolute;
        right: 0;
        top: 135px;
        width: 70px;
        font-size: 16px;
        background-color: yellow;
        border-radius: 5px;
        button {
          background-color: transparent;
          font-size: 15px;
          display: block;
          margin: 0 auto;
          color: #797979;
          font-weight: bold;
          &::after {
            display: block;
            content: "";
            width: 0;
            height: 0;
            border: 10px solid transparent;
            border-bottom: 10px solid yellow;
            position: absolute;
            top: -20px;
            left: 20px;
          }
        }
      }
    }
    .welc2 {
      position: relative;
      h3 {
        color: #000;
        font-weight: bold;
        margin-bottom: 10px;
      }
      p {
        font-size: 14px;
        margin-bottom: 20px;
        position: relative;
        button {
          font-size: 30px;
          background-color: transparent;
          position: absolute;
          right: 13px;
          top: -25px;
          padding: 5px 5px;
        }
      }
      .tip {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 70px;
        font-size: 16px;
        background-color: yellow;
        border-radius: 5px;
        button {
          background-color: transparent;
          font-size: 15px;
          display: block;
          margin: 0 auto;
          color: #797979;
          font-weight: bold;
          &::after {
            display: block;
            content: "";
            width: 0;
            height: 0;
            border: 10px solid transparent;
            border-bottom: 10px solid yellow;
            position: absolute;
            top: -20px;
            left: 20px;
          }
        }
      }
    }
  }
}
</style>